package com.zsx.shopping.product.controller;

import com.zsx.shopping.common.api.R;
import com.zsx.shopping.product.service.SpuService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/product/spu")
public class SpuController {

    @Resource
    private SpuService spuService;

    @GetMapping("/upload")
    public R<Void> upload(@RequestParam Long spuId) {
        spuService.upload(spuId);
        return R.success();
    }
}
